package com.black.quick.controller;

import com.black.quick.domain.QuickUser;
import com.black.quick.redis.RedisService;
import com.black.quick.result.Result;
import com.black.quick.service.QuickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class UserController {

	@Autowired
    QuickService userService;
	
	@Autowired
    RedisService redisService;

	//QPS == 687.3/sec

    @RequestMapping("/info")
    @ResponseBody
    public Result<QuickUser> info(Model model, QuickUser user) {
        return Result.success(user);
    }
    
}
